package com.ambow.service.impl;

import java.util.List;

import com.ambow.Entity.Bclass;
import com.ambow.Entity.Category;
import com.ambow.Entity.Level;
import com.ambow.Entity.Major;
import com.ambow.Entity.PackageBook;
import com.ambow.Entity.Stock;
import com.ambow.Entity.Student;
import com.ambow.dao.PackageDao;
import com.ambow.dao.impl.PackageDaoImpl;
import com.ambow.service.PackageService;
import com.ambow.utils.BaseDAO;

public class PackageServiceImpl implements PackageService {
	PackageDao dao=new PackageDaoImpl();
	@Override
	public Stock querybook(String hql, String[] param) {
		// TODO Auto-generated method stub
		return this.dao.querybook(hql, param);
	}
	@Override
	public boolean addPackageBook(PackageBook pBook) {
		// TODO Auto-generated method stub
		return this.dao.addPackageBook(pBook);
	}
	@Override
	public List<PackageBook> queryPackageBook(String hql, String[] param) {
		// TODO Auto-generated method stub
		return this.dao.queryPackageBook(hql, param);
	}
	@Override
	public List<PackageBook> queryAll(String hql) {
		return this.dao.queryAll(hql);
		
		
	}
	@Override
	public PackageBook queryById(Class c, Integer package_id) {
		return this.dao.queryById(c,package_id);	
	}
	
	@Override
	public List<Bclass> queryAllBclass(String hql) {
		// TODO Auto-generated method stub
		return this.dao.queryAllBclass(hql);
	}
	@Override
	public List<Student> queryAllStudent(String hql) {
		// TODO Auto-generated method stub
		return this.dao.queryAllStudent(hql);
	}
	@Override
	public Category queryCategoryById(Integer cid) {
		// TODO Auto-generated method stub
		return this.dao.queryCategoryById(cid);
	}
	@Override
	public Major queryMajorById(Integer mid) {
		// TODO Auto-generated method stub
		return this.dao.queryMajorById(mid);
	}
	@Override
	public Level queryLevelById(Integer lid) {
		// TODO Auto-generated method stub
		return this.dao.queryLevelById(lid);
	}
	@Override
	public Bclass queryBclassById(Integer classid) {
		// TODO Auto-generated method stub
		return this.dao.queryBclassById(classid);
	}
	

}
